# Django settings for comunidadpaz1_1 project.

DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
     ('Ramiro Baltazar', 'ramirovazquez95@gmail.com'),
)



MANAGERS = ADMINS

DATABASES = {
    'default': {
        'ENGINE': 'mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'ramiro_comunidadpaz',                      # Or path to database file if using sqlite3.
        'USER': 'ramiro',                      # Not used with sqlite3.
        'PASSWORD': 'edmEL16N',                  # Not used with sqlite3.
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
    }
}

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'America/Mexico_City'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'es'

SITE_ID = 1

# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True


gettext = lambda s: s 



# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = '/home/ramiro/comunidadpaz/branches/comunidadpaz1_1/tema/'

# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash if there is a path component (optional in other cases).
# Examples: "http://media.lawrence.com", "http://example.com/media/"
#MEDIA_URL = ''
MEDIA_URL = '/tema/'
#MEDIA_URL = 'http://media.comunidadpaz.com'

# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
#ADMIN_MEDIA_PREFIX = '/mediapong/'
ADMIN_MEDIA_PREFIX = '/media/'

# Make this unique, and don't share it with anybody.
SECRET_KEY = 'ye&3=(4eyq^zc#&tmwi-prw6x313m+o5^r$wacifjf2_%ku7s2'
#GOOGLE_MAPS_API_KEY = 'ABQIAAAASc5TkfDq7ZwPuksfVZQuRRTVxmFwYHTLWNgaSPqyFoR4y3HRShRSRvz31H9kSVPwKQF14TenKqnF3w'
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.Loader',
    'django.template.loaders.app_directories.Loader',
    'django.template.loaders.app_directories.load_template_source',
#     'django.template.loaders.eggs.Loader',
)

MIDDLEWARE_CLASSES = (
#    'django.middleware.locale.LocaleMiddleware',
    'cms.middleware.toolbar.ToolbarMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.middleware.csrf.CsrfResponseMiddleware',
    'cms.middleware.page.CurrentPageMiddleware',
    'cms.middleware.user.CurrentUserMiddleware',
    'cms.middleware.multilingual.MultilingualURLMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
)




TEMPLATE_CONTEXT_PROCESSORS = (
        "django.core.context_processors.auth",
        "django.core.context_processors.i18n",
        "django.core.context_processors.request",
        "django.core.context_processors.media",
        "cms.context_processors.media",
)
             


ROOT_URLCONF = 'comunidadpaz1_1.urls'
CMS_MENU_TITLE_OVERWRITE = True
CMS_URL_OVERWRITE = True
FORCE_SCRIPT_NAME = ''

TEMPLATE_DIRS = (
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
#    os.path.join(os.path.dirname(__file__), "templates"),    
    '/home/ramiro/comunidadpaz/branches/comunidadpaz1_1/templates'
)


CMS_TEMPLATES = (
    ('portada.html', gettext('portada')),
    ('homepage_1.html', gettext('home')),
    ('index.html', gettext('default')),
    ('nice.html', gettext('nice one')),
    ('cool.html', gettext('cool one')),
    ('long-folder-long/long-template-name.html', gettext('long')),
    ('comunidadpaz_base.html', gettext('comunidad paz base')),
    ('simple.html', gettext('simple')),
)

CMS_APPLICATIONS_URLS = (
('cmsplugin_photologue.urls', 'Photologue app'),
)

CMS_NAVIGATION_EXTENDERS = (
        ('cmsplugin_photologue.menu.get_nodes', 'Photologue app Navigation'),
)

LANGUAGES = (
        ('en', gettext('English')),
        ('es', gettext('Spanish')),
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.admin',
    'django.contrib.sites',
    'django.contrib.messages',
    'cms',
    'cms.plugins.text',
    'cms.plugins.picture',
    'cms.plugins.link',
    'cms.plugins.file',
    'cms.plugins.snippet',
    'cms.plugins.googlemap',
    'mptt',
    'publisher',
    'menus',
#    'cmsplugin_photologue',
)



